package com.lujieni.springbooticbc.service.impl;

import com.lujieni.springbooticbc.entity.SreLog;
import com.lujieni.springbooticbc.service.IAlarmTask;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class IcbcAlarmTask implements IAlarmTask {
    @Override
    public List<SreLog> generateAlarmData() {
        SreLog log = new SreLog();
        log.setInfo("db告警");
        SreLog log2 = new SreLog();
        log2.setInfo("redis告警");
        List<SreLog> list = new ArrayList<>();
        list.add(log);
        list.add(log2);
        return list;
    }
}
